package com.zhuoyue.service.base;

import java.io.Serializable;

/**
 * 服务接口异常 基类
 * 
 * @author Administrator
 *
 */
public class ServiceException extends Exception implements Serializable {

	/**
	 * 异常代码
	 */
	private String code = "";

	/**
	 * 异常消息
	 */
	private String message = "";

	public ServiceException(String message) {
		this.message = message;
	}

	public ServiceException(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
